package com.zsk.shop.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
@ApiModel("新增规则参数实体类")
public class AddRuleParams {

    @Size(max = 50, message = "规则长大不能超过50")
    @ApiModelProperty(name = "ruleKey", value = "规则key", dataType = "String")
    private String ruleKey;
    @Size(max = 30, message = "标题长度不能超过30")
    @ApiModelProperty(name = "title", value = "标题", dataType = "String")
    private String title;
    @ApiModelProperty(name = "content", value = "内容", dataType = "String")
    private String content;
}
